const { sequelize, DataTypes } = require('../../utill/getSequelize')

//课程目标达成度评价机制表
const Evaluation_mechanism = sequelize.define('Evaluation_mechanism', {
  id: {
    type: DataTypes.INTEGER,
    primaryKey: true,
    autoIncrement: true,
  },




  agencies: {//评价机构
    type: DataTypes.STRING,
    // allowNull: false,
  },

  


  data: {//数据来源
    type: DataTypes.STRING,
    // allowNull: false,
  },




  cycle: {//评价周期
    type: DataTypes.STRING,
    // allowNull: false,
  },


  t_user_and_a_c_s_id: {
    type: DataTypes.INTEGER,
    allowNull: false,
  },


});


//同步模型和数据库表
(async () => {
  try {
    await sequelize.sync({ force: false });
    console.log('All models were synchronized successfully.');
  } catch (error) {
    console.log(error);
  }

})();

//提供出去
module.exports = { Evaluation_mechanism };